package com.ustc.hewei.nettyrpc2_0.zookeeper.register;

import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.util.List;

/**
* @description: 服务注册的统一接口
* @author hewei
* @date 2022/7/26 19:11
* @version 1.0
*/

public interface ServiceRegister {

    void register(Object obj, String serviceName, int weight);

    void unregister(String serviceName) throws Exception;

    Object getServiceObject(String serviceNme);
}
